/* here is color-scheme.less */
@colorSchemeName:        "blue";
//// Luma breaks
///////////////////////////

// Change these for different contrast cutoff points

@luma-upper-break:80%;
@luma-lower-break:16%;

//// Beginning color values
///////////////////////////

@sat:saturation(@seed-color);
@luma:luma(@seed-color);
@lit:lightness(@seed-color);
@tone:desaturate(@seed-color,100%);


///////////////////////////
//// Mix-ins
///////////////////////////

//// Contrast
///////////////////////////

// contrasts text against a given background color

.contrast (@color) when (luma(@color) >= @luma-upper-break) {
    //darker text for lighter backgrounds
    color:average(darken(@color,30%),#222);
}

.contrast (@color) when (luma(@color) < @luma-upper-break) {
    //white text for everything else
    color:#ffffff;
}

//// Schemify
///////////////////////////

// brings outside colors more in line with the current scheme

.schemify(@color) { //schemifies a background color
    @mix-weight:60%;
    @new-color:mix(hsl(hue(@color),@sat,@luma),@color,@mix-weight);
    background:@new-color;
    .contrast(@new-color);
}

.schemify-text(@color) {
    @mix-weight:60%;
    @new-color:mix(hsl(hue(@color),@sat,@luma),@color,@mix-weight);
    color:@new-color;
    .contrast(@color);
}


.contrast-link (@color) when (luma(@color) < @luma-upper-break) {
    color:mix(#ffffff,@color1,75%);
}


@seed-color:#533336;



// blue theme

@seed-color:                #533336;
@color1:					#007CB6;
@color1a:					#CAE1F3;
@color1b:					#109ADB;


@color2:					#FFC000;
@color2a:					#F49800;
@color2b:					#FCF8E3;
@color2c:					#EEF5FF;
@color3:                    #7F151A;
@color3c:					#7F151A;		


@DominantTone:            	@blue;
@lightDominantTone:			#C9DAEC;
@lighterDominantTone:  		@color1a;


@SecondaryColor:			@color2c;
@lightSecondaryColor:		@color2a;
@lighterSecondaryColor:		@color3c;

@AccentColor:				#49A1EA;
@SecondaryAccentColor:      @lightBlue;
@ThirdAccentColor:          @grayLight;




// Grays
// -------------------------
@black:                 #000;
@grayDarker:            #222;
@grayDark:              #333;
@gray:                  #555;
@grayLight:             #787878;
@grayLighter:           #eee;
@grayLightest:          #ccc;
@white:                 #fff;
@dddGray:				#ddd;

// Accent colors
// -------------------------
// @blue:                  #049cdb;
@lightBlue:             lighten(#C9DAEC, 10%);
@blue:                  #0F99DA;
@blueDark:              #0064cd;
@green:                 #46a546;
@greentemp:             #38A5C4;   
@red:                   #9d261d;
@yellow:                #ffc40d;
@orange:                #f89406;
@pink:                  #c3325f;
@purple:                #7a43b6;



// Links
// -------------------------
@linkColor:             @grayDarker;
@linkColorHover:        darken(@AccentColor, 15%);

// accent links
@linkAccentColor:		@white;
@linkAccentColorHover:	@lighterDominantTone;

// Buttons
// -------------------------


@btnPrimaryBackground:              @SecondaryColor;
@btnPrimaryBackgroundHighlight:     spin(@btnPrimaryBackground, 15%);




// Navbar
// -------------------------

@navbarBackgroundHighlight:       @DominantTone;
@navbarBackground:                darken(@navbarBackgroundHighlight, 5%);
@navbarBorder:                    darken(@navbarBackground, 12%);

@navbarText:                      @grayLight;
@navbarLinkColor:                 @grayLight;
@navbarLinkColorHover:            @white;
@navbarLinkColorActive:           @navbarLinkColorHover;
@navbarLinkBackgroundHover:       transparent;
@navbarLinkBackgroundActive:      darken(@navbarBackground, 5%);

@navbarBrandColor:                @navbarLinkColor;

// Inverted navbar
@navbarInverseBackground:                #111111;
@navbarInverseBackgroundHighlight:       #222222;
@navbarInverseBorder:                    #252525;

@navbarInverseText:                      @grayLight;
@navbarInverseLinkColor:                 @grayLight;
@navbarInverseLinkColorHover:            @white;
@navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
@navbarInverseLinkBackgroundHover:       transparent;
@navbarInverseLinkBackgroundActive:      @navbarInverseBackground;

@navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
@navbarInverseSearchBackgroundFocus:     @white;
@navbarInverseSearchBorder:              @navbarInverseBackground;
@navbarInverseSearchPlaceholderColor:    @grayLight;

@navbarInverseBrandColor:                @navbarInverseLinkColor;



// Pagination
// -------------------------
@paginationBackground:                @btnBackground;
@paginationBorder:                    #dcdcdc;
@paginationActiveBackground:          #f5f5f5;


// Hero unit
// -------------------------
@heroUnitBackground:              @grayLighter;
@heroUnitHeadingColor:            inherit;
@heroUnitLeadColor:               inherit;


// Form states and alerts
// -------------------------
@warningText:             #333; //#c09853;
@warningBackground:       #f9edbe;
@warningBorder:           darken(spin(@warningBackground, -10), 3%);

@errorText:               #dd4b39;
@errorBackground:         #f2dede;
@errorBorder:             darken(spin(@errorBackground, -10), 3%);

@successText:             #468847;
@successBackground:       #dff0d8;
@successBorder:           darken(spin(@successBackground, -10), 5%);

@infoText:                #3a87ad;
@infoBackground:          #d9edf7;
@infoBorder:              darken(spin(@infoBackground, -10), 7%);


// Tooltips and popovers
// -------------------------
@tooltipColor:            #fff;
@tooltipBackground:       #000;
@tooltipArrowWidth:       5px;
@tooltipArrowColor:       @tooltipBackground;

@popoverBackground:       #fff;
@popoverArrowWidth:       10px;
@popoverArrowColor:       #fff;
@popoverTitleBackground:  darken(@popoverBackground, 3%);

// Special enhancement for popovers
@popoverArrowOuterColor:  rgba(0,0,0,.25);

// header  #cae1f3, #eef5ff
@headerBackgroundColor: 	@lighterSecondaryColor;
@headerBackgroundDarkColor:	@lightDominantTone;

@navbarActiveBackgroundColor:	@SecondaryAccentColor;

// nav
@navHoverColor:				@AccentColor;


// tab
@tabBorderActiveColor: 		@AccentColor;
@tabActiveColor: 			@AccentColor;
@tabHoverColor:             @SecondaryAccentColor;
@tabBackgroundColor:		lighten(@lighterDominantTone, 20%);
@tabBorderDefaultColor:     @grayLight;

// nav-pills
@navpillBackground:			lighten(@AccentColor, 10%);
@navpillHoverBackground:	@AccentColor;



// input
@inputBorderColor: 			@DominantTone;


// box 
//@boxHeadBackgroundImage:	url("img/images/box_head_bg.png");
@boxHeadBackgroundImage:	url("../images/images/box_head_bg.png");
@boxHeadBackgroundColor:	@DominantTone;

@boxBackgroundColor:		lighten(@lighterDominantTone, 20%);//#ccc;//@lighterDominantTone;//f9f9f9

@boxBorderColor:			lighten(@lighterDominantTone,3%);

@boxAccentBackgroundColor:	#f1f1f1;

@mboxHeadTitleBackgroundImage:	data-uri(%("%simages/box_head_bg.png", @customImgPath));
@mboxHeadTitleColor:	@white;


// nav-list
@navlistBackgroundImage: 		data-uri(%("%simages/subNav_icon.png", @customImgPath));
@navlistBackgroundColor:		@SecondaryColor;//#ffc000